@import '~ant-design-vue/es/style/themes/default.less';

html,
body,
#app,
#root {
  height: 100%;
}

.ant-form-item-label {
  line-height: 32px;
}
.ant-form-item-control {
  line-height: 32px;
}
// .ant-form-item {
//   margin-bottom: 14px;
// }
.card_top_padding {
  .ant-card-body {
    padding-top: 0px;
    padding-bottom: 14px;
    .ant-tabs-bar {
      margin: 0 0 14px 0;
    }
    .ant-tabs-nav .ant-tabs-tab {
      padding: 20px 0;
      margin: 0 49px 0 0;
    }
  }
}
.tab_list_card {
  .ant-card-body {
    padding-top: 0px;
    padding-bottom: 14px;
    .ant-tabs-bar {
      margin: 0 0 0px 0;
    }
    .ant-tabs-nav .ant-tabs-tab {
      padding: 20px 0;
      margin: 0 49px 0 0;
    }
  }
}
.no_need_padding {
  .ant-card-body {
    padding-bottom: 0px;
  }
}
.colorWeak {
  filter: invert(80%);
}

.ant-popover-title {
  border-bottom: none;
}
.ant-modal-confirm-body > .anticon + .ant-modal-confirm-title + .ant-modal-confirm-content {
  margin-top: 25px;
  margin-left: 0;
}
.ant-layout.layout-basic {
  height: 100vh;
}
.ant-pro-basicLayout-content {
  margin: 0;
}

.ant-popover-inner-content {
  .ant-table-wrapper {
    max-height: 400px;
    overflow-y: scroll;
  }
}
.ant-layout .sidemenu {
  overflow-y: scroll;
  &::-webkit-scrollbar {
    width: 8px;
    background: transparent;
    border-radius: 4px;
  }
  &::-webkit-scrollbar-thumb {
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.3);
  }
  &::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.1);
    border-radius: 5px;
  }
  height: 100vh;
}
.ant-layout-content {
  min-height: auto;
}
canvas {
  display: block;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-y: hidden;
}

ul,
ol {
  list-style: none;
}

// 数据列表 样式
.table-alert {
  margin-bottom: 16px;
}
// 数据列表 操作
.table-operator {
  margin-bottom: 16px;

  button {
    margin-right: 8px;
  }
}
// 数据列表 搜索条件
.table-page-search-wrapper {
  .ant-form-inline {
    .ant-form-item {
      display: flex;
      // margin-bottom: 24px;
      margin-right: 0;

      .ant-form-item-control-wrapper {
        flex: 1 1;
        display: inline-block;
        vertical-align: middle;
      }

      > .ant-form-item-label {
        line-height: 32px;
        padding-right: 8px;
        width: auto;
      }
      .ant-form-item-control {
        height: 32px;
        line-height: 32px;
      }
    }
  }

  .table-page-search-submitButtons {
    display: block;
    margin-bottom: 24px;
    white-space: nowrap;
  }
}
// 数据列表 搜索条件
.table-page-search-box {
  padding-bottom: 10px;
  .ant-form-inline {
    .ant-form-item {
      display: flex;
      margin-top: 24px;
      margin-right: 0;

      .ant-form-item-control-wrapper {
        flex: 1 1;
        display: inline-block;
        vertical-align: middle;
      }
      .select {
        display: flex;
        align-items: center;
        .ant-btn {
          margin-left: 10px;
        }
      }
      > .ant-form-item-label {
        line-height: 32px;
        padding-right: 4px;
        width: auto;
      }
      .ant-form-item-control {
        height: 32px;
        line-height: 32px;
      }
    }
  }

  .table-page-search-submitButtons {
    display: block;
    margin-bottom: 24px;
    white-space: nowrap;
  }
}

@media (max-width: @screen-xs) {
  .ant-table {
    width: 100%;
    overflow-x: auto;
    &-thead > tr,
    &-tbody > tr {
      > th,
      > td {
        white-space: pre;
        > span {
          display: block;
        }
      }
    }
  }
}

.ant-table-fixed-left {
  overflow: visible;
}
.card_style_re {
  .ant-card-body {
    padding-top: 16px;
    .table-operator {
      margin-bottom: 16px;
    }
  }
  .ant-divider-horizontal {
    margin: 0 0 5px 0;
  }
}

.choosedEdit {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  border: 1px dashed #000;
}
